package cn.cyty.midway.user.po;

import java.util.Date;

import com.tuweisoft.tt.potts.pump.oo.annotion.Entity;
import com.tuweisoft.tt.potts.pump.oo.annotion.field.Primarykey;
import com.tuweisoft.tt.potts.pump.oo.annotion.field.choose.Item;
import com.tuweisoft.tt.potts.pump.oo.annotion.field.num.PInteger;
import com.tuweisoft.tt.potts.pump.oo.annotion.field.text.Text;
import com.tuweisoft.tt.potts.pump.oo.annotion.field.time.PTimestamp;
import com.tuweisoft.tt.potts.pump.oo.runtime.PumpObject;

@Entity(id="T_Login_RECORD", title="登录记录", dataField="id")
public class LoginRecord implements PumpObject {

	private static final long serialVersionUID = -7194022080200276066L;

	@PInteger(id="RECORD_ID", title="编号", required=true, unique=true)
	@Primarykey(increment=true)
	private String id;
	
	@Item(id="RECORD_MEMBER", title="会员")
	private Member member;
	
	@PTimestamp(id="RECORD_TIME", title="登录时间")
	private Date time;
	
	@Text(id="RECORD_COORDINATE", title="坐标", minLength=255)
	private String coordinate;
	
	@Text(id="RECORD_PLACE", title="地点", minLength=255)
	private String place;
	
	@Item(id="RECORD_DEVICE", title="设备")
	private LoginDevice device;
	
	@Text(id="RECORD_NOTE", title="备注")
	private String note;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public String getCoordinate() {
		return coordinate;
	}

	public void setCoordinate(String coordinate) {
		this.coordinate = coordinate;
	}

	public String getPlace() {
		return place;
	}

	public void setPlace(String place) {
		this.place = place;
	}

	public LoginDevice getDevice() {
		return device;
	}

	public void setDevice(LoginDevice device) {
		this.device = device;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}
	
}
